package com.zenika.zenbinding.client.validator;

import com.zenika.zenbinding.client.exception.DataMessage;
import com.zenika.zenbinding.client.exception.ValidatorException;

public class RequiredValidator implements Validator {

	public void validate(Object object) throws ValidatorException {
		if (object.toString().equals("")) {
			DataMessage message = new DataMessage("Required Field");
			throw new ValidatorException(message);
		}
	}

}
